/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.co.pas.spaceandtime.message;

import za.co.pas.business.message.MessageObj;
import za.co.pas.spaceandtime.data.Building;

/**
 *
 * @author alabuschagne
 */
public class RequestBuildingDetailChanged  extends MessageObj
{
    public RequestBuildingDetailChanged()
    {
        super(MsgConstant.REQUEST_BUILDING_DETAIL_CHANGED);
    }

    public RequestBuildingDetailChanged(Building newBuilding)
    {
        super(MsgConstant.REQUEST_BUILDING_DETAIL_CHANGED);
        setNewValue(newBuilding);
    }

    public RequestBuildingDetailChanged(Building currentBuilding, Building newBuilding)
    {
        super(MsgConstant.REQUEST_BUILDING_DETAIL_CHANGED);
        setOldValue(currentBuilding);
        setNewValue(newBuilding);
    }

}
